home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Mark Pilgrim / Voyeur 1.1.1 / source / Voyeur ƒ / v code ƒ / program globals.h next >
Encoding:
Text File  |  1994-10-30  |  1.9 KB  |  71 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        program globals.h
  4.  
  5. Purpose:    This is the header file for all the Voyeur globals.
  6.  
  7.  
  8. Voyeur -- a no-frills file viewer
  9. Copyright ©1993-4, Mark Pilgrim
  10.  
  11. This program is free software; you can redistribute it and/or modify
  12. it under the terms of the GNU General Public License as published by
  13. the Free Software Foundation; either version 2 of the License, or
  14. (at your option) any later version.
  15.  
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. GNU General Public License for more details.
  20.  
  21. You should have received a copy of the GNU General Public License
  22. along with this program in a file named "GNU General Public License".
  23. If not, write to the Free Software Foundation, 675 Mass Ave,
  24. Cambridge, MA 02139, USA.
  25.  
  26. \**********************************************************************/
  27.  
  28. enum
  29. {
  30.     allsWell = 0,
  31.     diskReadErr,
  32.     typeCreatorWriteErr,
  33.     offsetTooLargeErr,
  34.     invalidHexErr,
  35.     diskFullErr,
  36.     badTypeCreatorErr,
  37.     tooManyFilesErr,
  38.     hexNotFoundErr,
  39.     asciiNotFoundErr,
  40.     userCancelErr
  41. };
  42.  
  43. enum
  44. {
  45.     findDialog=200,
  46.     offsetDialog,
  47.     eofDialog,
  48.     typeCreatorDialog,
  49.     findHexDialog
  50. };
  51.  
  52. #define CREATOR            'Voyr'
  53. #define APPLICATION_NAME "\pVoyeur"
  54. #define MAX_WINDOWS        10
  55.  
  56. extern    unsigned char        hexchar[2][256];
  57. extern    unsigned char        asciichar[256];
  58. extern    FSSpec                gTheFS[MAX_WINDOWS];
  59. extern    int                    gTheRefNum[MAX_WINDOWS];
  60. extern    int                    gBufferOffset[MAX_WINDOWS];
  61. extern    unsigned long        gTheOffset[MAX_WINDOWS][2];
  62. extern    unsigned char        gTheBuffer[MAX_WINDOWS][256];
  63. extern    unsigned long        gForkLength[MAX_WINDOWS][2];
  64. extern    int                    gWhichFork[MAX_WINDOWS];
  65. extern    Str255                gFindString;
  66. extern    Str255                gFindHexString;
  67. extern    Str255                gFindHexStringInAscii;
  68. extern    Boolean                gFindHex;
  69. extern    int                    gWhichFile;
  70. extern    int                    gLastFile;
  71.